package com.example.config;

public enum  ResultCode {
    //成功
    SUCCESS(200),

    //失败
    FAIL(400),

    //用户未认证
    UNAUTHORIZED(401),

    //url找不到
    NOT_FOUND(404),

    //访问受限
    FORBIDDEN(403),

    //服务器错误
    INTERNAL_SERVER_ERROR(500);

    public int code;

    ResultCode(int code) {
        this.code = code;
    }
}
